<%@ page contentType="text/html; charset=UTF-8"%>
<%@ page import="whf.framework.security.UserContext"%>
<%@ page import="whf.framework.web.HttpHelper"%>

<%@taglib uri="/WEB-INF/tlds/framework.tld" prefix="framework"%>

<html>
	<head>
		<title>Untitled Document</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<link rel="stylesheet" href="library/css/default.css" type="text/css" />
	</head>
	<script language="javascript">
	function HideOrShowTop(){
		var showtop = document.all.item("showtop");
		var pic = document.all.item("pictop");
	 	if(showed.value!=null){
	 		if(showtop.value=="true"){
	            window.parent.topFrame.rows="0,35,*";
	 			showtop.value="false";
	 			pic.src="<%=request.getContextPath()%>/images/show_banner.jpg";    
	 			pic.title="点击显示广告栏";
	 		}else{
	            window.parent.topFrame.rows="49,35,*"                    
	    		showtop.value="true";
	    		pic.src="<%=request.getContextPath()%>/images/hide_banner.jpg";
	    		pic.title="点击隐藏广告栏";
	 		}
	 	}else{
	 		alert("Error");
	 	}
	}
	
	function relogon(){
		window.top.location.href="logout.jsp";
	}
	
	</script>
	<body leftmargin="0" topmargin="0" onload="HideOrShowTop()">
		<%
			UserContext userContext = HttpHelper.getUserContext(request);
			request.setAttribute("user", userContext.getUser());
			request.setAttribute("now", new java.util.Date());
		%>
		<table width="100%" height="35" border="0" cellpadding="0"
			cellspacing="0"
			background="<%=request.getContextPath()%>/images/topmenu_bg2.jpg">
			<tr>
				<td width="50">
					<div align="center">
						<img name="pictop" style="cursor:hand"
							src="<%=request.getContextPath()%>/images/hide_banner.jpg"
							width="23" height="34" onClick="HideOrShowTop()" title="点击显示广告栏">
						<input name="showed" type="hidden" value="true" id="showed"
							width="12">
						<input name="showtop" type="hidden" value="true" id="showtop"
							width="12">
					</div>
				</td>
				<td width="278" align="center"
					background="<%=request.getContextPath()%>/images/menu_bg1.jpg">
					<div align="left">
						<font style="color:black;fontWeight=BOLD;font-size:12px;"><framework:attr
								source="user" attr="name" /> <span class="globalinfo"
							category="UserName"></span>&nbsp; <framework:attr source="now"
								format="yyyy年MM月dd日 HH:mm" /> </font>
					</div>
				</td>
				<td valign="top">
					<img src="<%=request.getContextPath()%>/images/topmenu_0.jpg"
						height="35" border="0" usemap="#Map">
				</td>
				<td valign="top">
					<div align="right">
						<table width="75%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<td>
									<img
										src="<%=request.getContextPath()%>/images/historyback.jpg"
										width="42" height="35" style="cursor:hand"
										onclick="javascript:top.mainFrame.history.back();" title="后退">
								</td>
								<td>
									<img
										src="<%=request.getContextPath()%>/images/historyforward.jpg"
										width="42" height="35" style="cursor:hand"
										onclick="javascript:top.mainFrame.history.forward();"
										title="前进">
								</td>
								<td>
									<a
										href="<%=request.getContextPath()%>/common/security/User.do?webMethod=profile"
										target="mainFrame"><img border="0"
											src="<%=request.getContextPath()%>/images/selfsetting.jpg"
											width="42" height="35" style="cursor:hand" title="个人设置">
									</a>
								</td>
								<td>
									<img
										src="<%=request.getContextPath()%>/images/btnRelogon.gif"
										width="42" height="35" style="cursor:hand" title="重新登录"
										onclick="relogon();">
								</td>
								<td>
									<img src="<%=request.getContextPath()%>/images/logout.jpg"
										width="42" height="35" style="cursor:hand" title="退出系统"
										onclick="window.parent.close();">
								</td>
								<td>
									<img src="<%=request.getContextPath()%>/images/help.jpg"
										width="42" height="35" style="cursor:hand"
										onClick="window.open('帮助/main.htm');" title="帮助">
								</td>
							</tr>
						</table>
					</div>
				</td>
			</tr>
		</table>
		<map name="Map">
			<area shape="rect" coords="234,12,289,32" href="inform_note1.htm"
				target="mainFrame">
			<area shape="rect" coords="171,13,217,32"
				href="fwt/wdrw/havedealbusy.htm" target="mainFrame">
			<area shape="rect" coords="112,13,158,32"
				href="fwt/wdrw/waitdealbusy.htm" target="mainFrame">
			<area shape="rect" coords="61,13,98,32" href="myDesktop.htm"
				target="mainFrame">
			<area shape="rect" coords="8,13,45,32"
				href="<%=request.getContextPath()%>/homepage/body.jsp"
				target="mainFrame">
		</map>
	</body>
</html>
